package com.qf.game;

public class Battle07 {
    public static void main(String[] args) {
        //1.创建长剑对象
        LongSword longSword = new LongSword();
        longSword.setName("湖中之月");
        longSword.setDamage(200);
        longSword.setBaojixishu(0.5);

        //2.创建武器
        Axe axe = new Axe();
        axe.setName("飓风之眼");
        axe.setDamage(220);

        //3.创建双持英雄
        DoubleweapenHero doubleweapenHero = new DoubleweapenHero();
        doubleweapenHero.setPower(30);
        doubleweapenHero.setWeapon(longSword);
        doubleweapenHero.setWeapon(axe);
        doubleweapenHero.attack();
    }
}
